package com.cnpc.rightslogan.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.Id;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

@Data
public class User {

    @Id
    private Integer userId;

    @NotBlank
    @ApiModelProperty("姓名")
    private String username;

    @NotBlank
    @ApiModelProperty("密码")
    private String password;

    @NotBlank
    @ApiModelProperty("组织结构编码")
    private String orgCode;

    @ApiModelProperty("电话")
    private String mobilePhone;

    @ApiModelProperty("邮箱")
    private String email;

    @ApiModelProperty("性别")
    private String sex;

    @NotNull
    @ApiModelProperty("是否删除")
    private Integer isDelete;

    @NotNull
    @ApiModelProperty("创建时间")
    private Date createTime;

    @ApiModelProperty("修改时间")
    private Date updateTime;

    @NotNull
    @ApiModelProperty("创建人Id")
    private Integer createUserId;

    @ApiModelProperty("更新人Id")
    private Integer updateUserId;
}